home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / -screenplay- / shareware / hammytown / 12.room < prev    next >
Text File  |  1997-12-01  |  6KB  |  184 lines

  1. /*                     This is a room file for GRAAL
  2. /*
  3. /*                                 12.room
  4. /*                                Toolshed.
  5.  
  6.  
  7. /* UPDATE: scroll_frames;normal_frames
  8. /*
  9. /*
  10. UPDATE: 3;1
  11.  
  12. /* SECTION: section number
  13. /*
  14. /*   The room belongs to section 1, described in the file 1.section.
  15. /*
  16. SECTION: 1
  17.  
  18. /* BG_IFF: filename
  19. /*
  20. /*   This is the backdrop file for the room
  21. /*
  22. BG_IFF: 12BG.IFF
  23.  
  24. /* START_POS: sposno;bobimage;x;y;camera;floor
  25. /*
  26. /* 1->Living Room
  27. START_POS: 1;$800E;310;115;L;1
  28.  
  29. /* FLOOR: floorno;x1;y1;x2;y2;floormap/.../floormap
  30. /*
  31. FLOOR: 1;25;86;319;119;1-1
  32.  
  33. /* EXIT: no;x1;y1;x2;y2;epointx;epointy;description
  34. /*
  35. EXIT: 1;294;26;319;119;316;109;Living Room
  36.  
  37. /* CLPART: filename
  38. /*
  39. CLPART: 12FG.IFF
  40.  
  41. /* ROOMBOBS: no_of_imgs;startrbob;grabx;graby;width;height;xoffset;hotsp
  42. /*
  43. /* 1 is the table.
  44. ROOMBOBS: 1;1;31;20;49;22;20;0
  45. /* 2 is the spade.
  46. ROOMBOBS: 1;2;87;11;16;33;0;0
  47. /* 3 is the saw.
  48. ROOMBOBS: 1;3;107;18;20;24;18;0
  49. /* 4 is the Toolbox
  50. ROOMBOBS: 1;4;136;25;37;18;0;0
  51. /* 5 is the crowbar
  52. ROOMBOBS: 1;5;181;18;19;27;0;0
  53. /* 6 is the socket
  54. ROOMBOBS: 1;6;213;10;12;9;0;0
  55. /* 7 is the voltage control
  56. ROOMBOBS: 1;7;213;23;12;10;0;0
  57. /* 8 is the knife
  58. ROOMBOBS: 1;8;209;37;16;4;0;0
  59.  
  60. /* STATIC: bobno;LBOBimage;putx;puty
  61. /* ANIM: bobno;bobimg;amalchannel;amalsequence;putx;puty
  62.  
  63. /* ROOMOBJ: roomobjno,object_definition.... (see graal.main documentation)
  64. /*
  65. /*
  66. ROOMOBJ: 1;Table;12;VIS;50;RBOB1;56;86;24;1;11; ;NPICK; ;8; ;MID;W;a;it; 
  67. ROOMOBJ: 2;Toolbox;12;VIS;51;RBOB4;106;86;21;2;11; ;NPICK; ;8; ;LOW;T;a;it; 
  68. ROOMOBJ: 3;Socket;12;VIS;52;RBOB6;270;68;-13;19;14; ;NPICK; ;8; ;HIGH; ;a;it; 
  69. ROOMOBJ: 4;Voltage Control;12;VIS;53;RBOB7;242;69;-14;19;14; ; ; ;8; ;HIGH; ;a;it; 
  70.  
  71.  
  72. /* DACT: condition;...;action;...
  73. /*
  74. /*   These lines contain room actions performed directly as you enter the
  75. /*   room.
  76. /*
  77. /*
  78. /* Light up scene
  79. DACT: LIGHTS ON
  80. DACT: IFRF 1=0;SAY Aha, this seems to be the toolshed!;SETRF 1=1;EXIT
  81.  
  82. /* LINE: dlgno;lineno;line;reuseline;conditions
  83. /* LACT: dlgno;lineno;action;...;action
  84.  
  85.  
  86.  
  87. /* Room actions follow below ***
  88. /*
  89. /* ACTION: verbno;condition;...;command;...
  90.  
  91. /*
  92. /* Action 0 - Exit
  93. /* ===============
  94. /*
  95. ACTION: 0;IFOBJ 1;MEXIT;GOTO 10,2;EXIT
  96.  
  97. /*
  98. /* Action 1 - Give
  99. /* ===============
  100. /*
  101. /* Action 2- Pick up
  102. /* =================
  103. /*
  104.  
  105. /*
  106. /* Action 3 - Use
  107. /* ==============
  108. /*
  109.  
  110. ACTION: 3;IFOBJ2 ROBJ4;MOBJ ROBJ4
  111. ACTION: 3;IFOBJ 18;IFOBJ2 ROBJ4;OBJ1 19;REDO
  112. ACTION: 3;IFOBJ 19;IFOBJ2 ROBJ4;IFRF 2=0;SAY It hasn't really got enough leverage.;EXIT
  113. ACTION: 3;IFOBJ 17;IFOBJ2 ROBJ4;IFRF 2=1;SAY I've already opened it.;EXIT
  114. ACTION: 3;IFOBJ 17;IFOBJ2 ROBJ4;SAY Here goes....;HANDLE ROBJ4;SAY Nnnnghhhh...;HANDLE -1;SAY Okay, it's open!;SETRF 2=1;EXIT
  115.  
  116. ACTION: 3;IFOBJ ROBJ4;IFRF 2=0;SAY I can't turn it, the cover is on too tight.;EXIT
  117. ACTION: 3;IFOBJ ROBJ4;IFRF 3=0;SAY Okay, let's turn up the voltage!;HANDLE;W 25;HANDLE -1;SETRF 3=1;SAY It is now at 500 volts!;EXIT
  118. ACTION: 3;IFOBJ ROBJ4;IFRF 4=0;SAY I've already turned it up.;EXIT
  119. ACTION: 3;IFOBJ ROBJ4;SAY I've had enough fun playing with the electrics.;EXIT
  120.  
  121. ACTION: 3;IFOBJ ROBJ3;IFRF 4=0;SAY I need something to plug into it.;EXIT
  122. ACTION: 3;IFOBJ ROBJ3;SAY I've already broken the lamp, I don't want to do any more damage.;EXIT
  123.  
  124.  
  125. ACTION: 3;IFOBJ 21;IFOBJ2 ROBJ3;IFOF 3=1;SAY The lamp is already lighting by itself somehow, there is no point in plugging it in again.;EXIT
  126.  
  127. ACTION: 3;IFOBJ 21;IFOBJ2 ROBJ3;IFOF 2=1;IFOF 3=0;MOBJ ROBJ3;SAY Let's try this Aztec bulb, see how well it works;HANDLE ROBJ3;W 25;HANDLE -1;SAY Well, it lights up.;HANDLE ROBJ3;W 25;HANDLE -1
  128. ACTION: 3;IFOBJ 21;IFOBJ2 ROBJ3;IFOF 2=1;IFOF 3=0;SAY That's strange!;SAY Even when the lamp is unplugged, the bulb still lights!;NAME Lamp that is magically lit;SETOF 3=1;EXIT
  129.  
  130. ACTION: 3;IFOBJ 21;IFOBJ2 ROBJ3;IFRF 3=0;MOBJ ROBJ3;HANDLE;SAY Well, the bulb lights up but nothing else interesting happens.;HANDLE -1;EXIT
  131. ACTION: 3;IFOBJ 21;IFOBJ2 ROBJ3;IFRF 4=1;SAY I've already broken the bulb.;EXIT
  132. ACTION: 3;IFOBJ 21;IFOBJ2 ROBJ3;MOBJ ROBJ3;SAY Now, this should be fun!;HANDLE ROBJ3;SAY The bulb just lit up very bright, then went "Ping", and went off.;HANDLE -1;SAY I think I just busted the bulb.;NAME Lamp with busted bulb;SETRF 4=1;SETOF 1=1;EXIT
  133.  
  134. ACTION: 3;IFOBJ 18|19;IFOBJ2 ROBJ3;SAY ...and give myself an electric shock?;SAY No thanks!;EXIT
  135.  
  136.  
  137. /* Action 4 - Open
  138. /* ===============
  139. /*
  140. ACTION: 4;IFOBJ ROBJ4;IFRF 2=0;VERB 3;REDO
  141. ACTION: 4;IFOBJ ROBJ4;IFRF 2=1;SAY It's Already Open.;EXIT
  142.  
  143. ACTION: 4;IFOBJ ROBJ2;IFRF 5=0;MOBJ;HANDLE;W 10;SAY Hey, there's a screwdriver and a spanner in here!;HANDLE -1;GET 19,N;GET 20,U;SETRF 5=1;EXIT
  144. ACTION: 4;IFOBJ ROBJ2;SAY It's already open.;EXIT
  145.  
  146.  
  147. /* Action 5 - Talk to
  148. /* ==================
  149. /*
  150.  
  151. /*
  152. /* Action 6 - Push
  153. /* ===============
  154. /*
  155. /*
  156. /* Action 7 - Close
  157. /* ================
  158.  
  159. ACTION: 7;IFOBJ ROBJ4;IFRF 2=1;SAY There's no point in doing that.;SAY Besides, the cover broke when I used the crowbar.;EXIT
  160.  
  161.  
  162. /*
  163. /* Action 8 - Look at
  164. /* ==================
  165. /*
  166. ACTION: 8;MOBJ
  167. ACTION: 8;IFOBJ ROBJ1;SAY It's your average table, really.;EXIT
  168. ACTION: 8;IFOBJ ROBJ2;IFRF 5=0;SAY An interesting looking toolbox!;SAY Wonder what's inside?;EXIT
  169. ACTION: 8;IFOBJ ROBJ2;SAY It's empty now.;EXIT
  170. ACTION: 8;IFOBJ ROBJ3;SAY Just a normal three pin socket.;EXIT
  171. ACTION: 8;IFOBJ ROBJ4;IFRF 2=0;SAY It's a voltage control, but the front cover is stuck on.;EXIT
  172. ACTION: 8;IFOBJ ROBJ4;IFRF 3=0;SAY Voltage control currently set to 230 volts.;EXIT
  173. ACTION: 8;IFOBJ ROBJ4;IFRF 3=1;SAY Voltage control currently set to 500 volts! Heh heh.;EXIT
  174.  
  175.  
  176. /*
  177. /* Action 9 - Pull
  178. /* ===============
  179. /*
  180. ACTION: 9;IFOBJ ROBJ1;VERB 6;REDO
  181. /*
  182. /* End of room file. Some comments must be here, otherwise  the last command
  183. /* line is missed out!
  184.